package com.zx.mapper;

import com.zx.base.mybatis.IMapper;
import com.zx.pojo.Right;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * 权限数据库接口
 *
 * @author
 * @since 2021-11-26
 */
public interface RightMapper extends IMapper<Right> {

    /**
     * 根据角色ID查找权限集合
     *
     * @param roleId 角色ID
     * @return
     */
    Set<Right> findRightByRoleId(@Param("roleId") Long roleId);
}
